/**
 * 
 */
package t4j.array;

import java.util.Arrays;

/**
 * @author sz
 *
 * create time：2012-8-20
 */
class A{}

public class VarArgs {
	static void printf(Object[] args){
		for(Object obj : args){
			System.out.println(obj+" ");
		}
		System.out.println();
	}
	
	public static void main(String[] args) {
		printf(new Object[]{new Integer(47),new Float(3.14),new Double(11.11)});
		
		printf(new Object[]{"one","two","three"});
		
		printf(new Object[]{new A(),new A()});
		
		printf(new int[]{1,2,3});
	}

	/**
	 * @param is
	 */
	private static void printf(int[] is) {
		// TODO Auto-generated method stub
	
		System.out.println(Arrays.toString(is));
		
	}
}
